home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Glitch Apple Disk Collection
/
2014.glitch.apple.collection.zip
/
indexed
/
IFRSIM.DSK
/
NDB RWY 4.bas
< prev
next >
Wrap
BASIC Source File
|
2014-09-09
|
2KB
|
69 lines
1 S = 100:S1 = 0:UP = 24579
2 ST = 24576:O1 = ST +56:O2 = ST +58:I1 = ST +60:I2 = ST +61:MA = ST +12:X1 = ST +26:Y1 = ST +28:AL = ST +87
3 SH = ST +09:PL = ST +06:LI = ST +15:XY = ST +18:DF = ST +39:CH = ST +93
5 XC = 100:YC = 130:XF = 70:YF = 130
10 GOSUB 5000
15 MT = 15:GAS = 0:MI = 0:SE = 0:S1 = 0
20 CALL ST
30 POKE O1,32: POKE O2,32: POKE I1,48: POKE I2,48
40 VTAB 22: PRINT "BOTTOM OMNI IS 260 DEG FROM LIT VOR"
50 POKE X1,95: POKE Y1,135
80 POKE O2,32 +DY: POKE I2,48: POKE I1,48
90 POKE AL,16: POKE AL -3,32:MA% = 3
100 CALL UP
110 S1 = S1 +1: IF S1 >S THEN 300
200 GOTO 100
210 REM
220 REM
230 REM
300 S1 = 0:SE = SE +1: IF SE >59 THEN 4000
310 HTAB 1: VTAB 24: PRINT HO;":";;MI;":";SE;" GAS=";MT -GA;" MINUTES REMAINING";
320 X = PEEK(X1):Y = PEEK(Y1)
321 IX = XF -X:IY = YF -Y:DY = YC -Y
322 IF IX = 0 THEN 324
323 IT = IY/IX
324 T1 = ATN(IT)
325 T1% = 16 -10 *T1
327 IF X >XF THEN PF% = (176 -T1%) - PEEK(CH)
328 IF X <XF THEN PF% = (208 -T1%) - PEEK(CH)
329 IF PF% >64 THEN PF% = PF% -64: GOTO 329
330 POKE DF,PF%
360 IF DY < -5 THEN DY = -6
370 IF DY >5 THEN DY = 6
380 POKE O2,32 +DY: POKE I2,48
385 IF PEEK(ALT) <5 THEN 480
430 IF DI >6 THEN DI = 6
470 IF PEEK(AL) >5 THEN 100
480 REM
490 HGR : CALL 24588
500 HCOLOR= 2: HPLOT 92,113
502 HPLOT TO 80,125
510 HPLOT TO 80,115
520 HPLOT TO 90,120
525 HCOLOR= 1
530 FOR X = 30 TO 80
540 Y = 205 -X
545 HPLOT X,Y
550 NEXT
560 FOR X = 20 TO 130
565 Y = 135: HPLOT X,Y
570 NEXT
580 FOR I = 1 TO 30
590 X = RND(1) *5:Y = RND(1) *5
595 HPLOT 65 +X,132 +Y: NEXT
600 VTAB 23: PRINT : PRINT : PRINT : PRINT "HIT RETURN TO FLY THIS AGAIN": PRINT "ANY OTHER KEY FOR MENU": GET A$
610 HOME : TEXT : IF ASC(A$) = 13 THEN 10
620 PRINT CHR$(4)
630 PRINT CHR$(4);"RUN MENU"
640 END
4000 SE = 0:MI = MI +1:GA = GA +1
4010 GOTO 100
5000 HOME : PRINT "YOU ARE CLEARED FOR NDB RWY 4 APPROACH"
5010 PRINT : PRINT "DIRECT TO LASKI NDB THEN OUTBOUND"
5020 PRINT : PRINT "220 DEGREES. MAKE PROCEDURE TURN"
5030 PRINT : PRINT "WEST THEN INTERCEPT THE 042 DEGREE"
5040 PRINT : PRINT "BEARING INBOUND TO RUNWAY 4"
5050 PRINT : PRINT "FINAL APPROACH FIX IS 260 DEGREE RADIAL"
5060 PRINT : PRINT "FROM LIT VOR (BOTTOM OMNI)"
5070 PRINT : PRINT "HIT ANY KEY WHEN READY TO FLY"
5080 GET A$: RETURN